From 6aef666a2911c15b31efeed08d89fe9997d89e04 Mon Sep 17 00:00:00 2001 From: Alex Kiernan Date: Sat, 31 Dec 2022 11:11:14 +0000 Subject: [PATCH] lib/repo-checkout: Add ALLPERMS for musl ALLPERMS is glibc specific, add a definition for musl. Signed-off-by: Alex Kiernan --- src/libostree/ostree-core-private.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libostree/ostree-core-private.h b/src/libostree/ostree-core-private.h index 2bd2f984..48b2b8ab 100644 --- a/src/libostree/ostree-core-private.h +++ b/src/libostree/ostree-core-private.h @@ -34,6 +34,11 @@ G_BEGIN_DECLS #define DEFAULT_DIRECTORY_MODE 0775 #define DEFAULT_REGFILE_MODE 0660 +/* This exists in glibc's sys/stat.h, but not on musl */ +#ifndef ALLPERMS +#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) +#endif + /* This file contains private implementation data format definitions * read by multiple implementation .c files. */ -- 2.30.2